{
    // 模拟数组
    // interface MyArray {
    //     length: number,
    //     push(n: number):void,
    //     pop():number,
    //     reverse():number[]
    // }

    interface MyArray<T> {
        length: number,
        push(n: T):void,
        pop():T,
        reverse():T[]
    }
    let arr1:MyArray<number>
    // arr1.push()
    let arr2:MyArray<string>
    // arr2.push()

    const arr3 = [1,2]

    arr3.push()
    const arr4 = ['1', '2']
    arr4.push()

}